<div ng-controller="GetOneDeviceCtrl">
<div class="panel panel-default">

 	<div class="panel-body" style="padding-top: 0;padding-bottom: 0;">                 
  		<div class="nav navbar-nav m-t"> 
            <a ui-sref="app.sys.devicelist({dpage:$state.params.epage,pid:aaData.product_id,pname:aaData.product_name})" ><span style="background-color: #e0e0e0; text-align: center;"><i class="glyphicon glyphicon-arrow-left" style="height:30px;width:30px; "></i></span></a>  			            
            <span><b>系统设置</b></span>
            <i class="fa fa-angle-right" style="font-size:20px"></i>
            <span><b>产品管理</b> </span>
            <i class="fa fa-angle-right" style="font-size:20px"></i>
            <span><b>设备列表</b></span> 
            <i class="fa fa-angle-right" style="font-size:20px"></i>
            <span><b>设备信息配置</b></span> 
         </div>
        <!-- nabar right -->
        <ul class="nav navbar-nav navbar-right">          
          <li class="dropdown" dropdown>
            <a href class="dropdown-toggle clear" dropdown-toggle>
              <span class="thumb-sm avatar pull-right m-t-n-sm m-b-n-sm m-l-sm">
                <img src="img/a0.jpg" alt="...">
                <i class="on md b-white bottom"></i>
              </span>
              <span class="hidden-sm hidden-md"><b>{{namedata}}</b></span> <b class="caret"></b>
            </a>
            <!-- dropdown -->
            <ul class="dropdown-menu animated fadeInRight w">  
              <li>
                <a ui-sref="app.user.info">用户信息</a>
              </li>       
              <li class="divider"></li>
              <li>
                <a ui-sref="access.signin" ng-click="logout()">登出</a>
              </li>
            </ul>
            <!-- / dropdown -->
          </li>
        </ul>
 	</div>
</div>
<div class="panel m-t-n-md">
  <div class="panel-body">
    <div class="row">
      <div class="col-md-6">
        <h4><b>设备基本信息</b></h4>
        <table class="table">
          <tr>
            <td>设备编号：</td>
            <td>{{aaData.equipment_snumber}}</td>
          </tr>
           <tr>
            <td>产品名称：</td>
            <td>{{aaData.product_name}}</td>
          </tr>
          <tr>
            <td>MAC地址：</td>
            <td>{{aaData.mac_address}}</td>
          </tr>
           <tr>
            <td>设备名称：</td>
            <td>{{aaData.equipment_name}}</td>
          </tr>
          <tr>
            <td>设备品牌：</td>
            <td>{{aaData.brand}}</td>
          </tr>
          <tr>
            <td><button class="btn btn-sm" ui-sref="app.sys.editdevbasicinfo({devid:aaData.equipment_id,ebpage:$state.params.epage})">编辑</button></td>
            <td></td>
          </tr>
        </table>
      </div>
      <div class="col-md-6">
        <h4><b>设备附加信息</b></h4>
        <table class="table">
          <tr>
            <td>安装人员：</td>
            <td>{{aaData.installer}}</td>
          </tr>
          <tr>
            <td>安装日期：</td>
            <td>{{aaData.install_date}}</td>
          </tr>
          <tr>
            <td>入网日期：</td>
            <td>{{aaData.equipment_date}}</td>
          </tr>
          <tr>
            <td><button class="btn btn-sm" ui-sref="app.sys.editdevadditionalinfo({devid:aaData.equipment_id,eadpage:$state.params.epage})">编辑</button></td>
            <td></td>
          </tr>
        </table>
      </div>
    </div>
  </div>
</div>
<!-- <div class="panel panel-default m-t-n-md">
  <div class="panel-body">
    <div class="panel panel-default">
      <div class="panel-heading">
        设备基本信息
      </div>
      <div class="panel-body">
        <form class="bs-example form-horizontal" >
              <div class="form-group">
                <label class="col-md-3 control-label">产品名称</label>
                <div class="col-md-9">
                  <input type="text" class="form-control"  ng-model="oo.product_name" readonly="">     
                </div>
              </div>
              <div class="form-group">
                <label class="col-md-3 control-label">楼层信息</label>
                <div class="col-md-9">
                  <input type="text" class="form-control" ng-model="oo.layerinfo" readonly="">
                </div>
              </div>              
             
              <div class="form-group">
                <label class="col-md-3 control-label">设备编号</label>
                <div class="col-md-9">
                  <input type="text" class="form-control"  ng-model="oo.did" readonly="">     
                </div>
              </div>  

              <div class="form-group">
                <label class="col-md-3 control-label">房间名</label>
                <div class="col-md-9">
                  <input type="text" class="form-control"  ng-model="oo.house_name">     
                </div>
              </div>                        
           
              <div class="form-group">
                <label class="col-md-3 control-label">人员</label>
                <div class="col-md-9">
                    <select class="form-control" ng-model="oo.personnel_id" ng-options="persondata.personnel_id as persondata.name for persondata in persondata">
                      <option value="">--请选择--</option>
                     <!--  <option ng-repeat="persondata in persondata" ng-value="{{persondata.personnel_id}}">{{persondata.name}}</option> -->
                 <!--    </select>
                </div>
              </div>              
             </form>
      </div>
    </div>
    <div class="panel panel-default">
      <div class="panel-heading">
        设备附加信息
      </div>
      <div class="panel-body">
        <form class="form-horizontal">
           <div class="form-group">
                <label class="col-md-3 control-label">入网日期</label>
                <div class="col-md-9" ng-controller="DatepickerCtrl">
                  <!-- <input type="text" class="form-control"  ng-model="oo.equipment_date" > -->   
                 <!--  <div class="input-group">
                    <input type="text" class="form-control" datepicker-popup="{{format}}" ng-model="aaData.equipment_date" is-open="opened" datepicker-options="dateOptions" ng-required="true" close-text="Close" />
                    <span class="input-group-btn">
                      <button type="button" class="btn btn-default form-control" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>
                    </span>
                    </div>     
                </div>
              </div>
              <div class="form-group">
                <label class="col-md-3 control-label">使用日期</label>
                <div class="col-md-9" ng-controller="DatepickerCtrl">                   
                  <div class="input-group">
                    <input type="text" class="form-control" datepicker-popup="{{format}}" ng-model="oo.use_date" is-open="opened" datepicker-options="dateOptions" ng-required="true" close-text="Close" />
                    <span class="input-group-btn">
                      <button type="button" class="btn btn-default form-control" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>
                    </span>
                    </div>        
                </div>
              </div>
              <div class="form-group">
                <label class="col-md-3 control-label">出厂时间</label>
                <div class="col-md-9" ng-controller="DatepickerCtrl">
                  <!-- <input type="text" class="form-control"  ng-model="oo.factory_date">  --> 
                 <!--  <div class="input-group">
                    <input type="text" class="form-control" datepicker-popup="{{format}}" ng-model="oo.factory_date" is-open="opened" datepicker-options="dateOptions" ng-required="true" close-text="Close" />
                    <span class="input-group-btn">
                      <button type="button" class="btn btn-default form-control" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>
                    </span>
                    </div>           
                </div>
              </div>
              <div class="form-group">
                <label class="col-md-3 control-label">使用场所</label>
                <div class="col-md-9">
                  <input type="text" class="form-control"  ng-model="oo.use_place">     
                </div>
              </div>
              <div class="form-group">
                <label class="col-md-3 control-label">使用单位</label>
                <div class="col-md-9">
                  <input type="text" class="form-control"  ng-model="oo.use_unit">     
                </div>
              </div>
              <div class="form-group">
                <label class="col-md-3 control-label">安装人员</label>
                <div class="col-md-9">
                  <input type="text" class="form-control"  ng-model="oo.installer">     
                </div>
              </div>
              <div class="form-group">
                <label class="col-md-3 control-label">安装日期</label>
                <div class="col-md-9" ng-controller="DatepickerCtrl">
                 <!--  <input type="text" class="form-control"  ng-model="oo.install_date">    --> 
                <!--  <div class="input-group">
                    <input type="text" class="form-control" datepicker-popup="{{format}}" ng-model="oo.install_date" is-open="opened" datepicker-options="dateOptions" ng-required="true" close-text="Close" />
                    <span class="input-group-btn">
                      <button type="button" class="btn btn-default form-control" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>
                    </span>
                    </div>            
                </div>
              </div> -->
              <!-- <div class="form-group">
                <label class="col-md-3 control-label">设备地址</label>
                <div class="col-md-9"> --> 
                  <!-- <input type="text" class="form-control"  ng-model="oo.address">     --> 
                <!-- </div>
              </div>
               <div ng-controller="IndexCtrl">

            <div class="form-group"  >
              <label class="col-lg-3 control-label">省份</label>
              <div class="col-lg-9">
                <select required="" class="form-control" ng-model="oo.province" ng-options="key as key for (key,value) in division" ng-change="oo.city='';oo.district='';"> 
                <option value="">-- 请选择 --</option> 
                </select>     
              </div>
            </div>

            <div class="form-group">
              <label class="col-lg-3 control-label">城市</label>
              <div class="col-lg-9">
                <select class="form-control" ng-model="oo.city" ng-options="key as key for (key,value) in division[oo.province]"  
                            ng-change="oo.district='';">  
                        <option value="">-- 请选择 --</option>  
                    </select>       
              </div>
            </div> -->

            <!-- <div class="form-group">
              <label class="col-lg-3 control-label">区</label>
              <div class="col-lg-9">
                <select class="form-control" ng-model="oo.district" ng-options="value as value for value in division[oo.province][oo.city]">  
                        <option value="">-- 请选择 --</option>  
                    </select>       
              </div>
            </div>

            <div class="form-group">
              <label class="col-lg-3 control-label">具体地址</label>
              <div class="col-lg-9">
                <textarea class="form-control"  ng-model="oo.detaiaddr"  rows="3">                  
                </textarea>
              </div>
            </div>
         </div>
              <div class="form-group">
                <label class="col-md-3 control-label">备注</label>
                <div class="col-md-9">
                  <textarea  class="form-control" ng-model="oo.remark"></textarea>   
                </div>
              </div>
              
          </form>
      </div>
    </div>
    <div class="text-center">
      <button class="btn btn-rounded" ng-click="save()">保存</button>
    </div>

  </div>
</div> -->

<!-- </div> --> 